package com.zhijian.medical.dao.local;


import com.zhijian.medical.entity.po.ExamAnswer;
import com.zhijian.medical.entity.vo.request.ExamAnswerSearchVo;
import com.zhijian.medical.entity.vo.response.ExamAnswerVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExamAnswerMapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 根据题库删除
     *
     * @param warehouseId
     * @return
     */
    int deleteByWarehouseId(Long warehouseId);

    int insert(ExamAnswer record);

    int insertSelective(ExamAnswer record);

    ExamAnswer selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ExamAnswer record);

    int updateByPrimaryKey(ExamAnswer record);

    int count(ExamAnswerSearchVo examAnswerSearchVo);

    List<ExamAnswerVo> selectList(ExamAnswerSearchVo examAnswerSearchVo);

    ExamAnswerVo selectVoById(Long id);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities List<ExamAnswer> 实例对象列表
     * @return 影响行数
     */
    int insertBatch(@Param("entities") List<ExamAnswer> entities);
}